<template>
  <div class="exhibition">
    <div class="middle">
      <div class="ex-item" v-for="items in exhibitionData" :key="items.key">
        <a class="titleimg">
          <img :src="items.titleimg" alt="展示" />
        </a>
        <div class="content">
          <h2>
            <a href="">{{ items.title }}</a>
          </h2>
          <i></i>
          <p>
            <span class="attribution">{{ items.attribution }} </span> /
            <span class="type">{{ items.type }}</span>
          </p>
        </div>
      </div>
    </div>
    <div class="pages">
      <page :page="1" :pageSize="10" :total="100" @pageChange="changePage" />
    </div>
  </div>
</template>

<script>
import page from "../../components/Pager.vue"
export default {
  props: ['exhibitionData'],
  components: {
    page
  },
  methods:{
    changePage(n){
      console.log(123,n)
    }
  }
}
</script>
<style scoped lang="scss">
.exhibition {
  .middle {
    width: 1530px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 35px;
    .ex-item {
      width: 470px;
      height: auto;
      margin-bottom: 60px;
      .titleimg {
        width: 100%;
        height: 500px;
        display: inline-block;
        border-radius: 5px;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          margin: 0;
          padding: 0;
          font-size: 0;
          border-radius: 5px;
          transition: all 0.3s;
        }
      }
      .titleimg:hover img{
        transform: scale(1.05);
      }
      .content {
        width: 100%;
        height: auto;
        h2 {
          width: 95%;
          margin-top: 30px;
          a {
            display: inline-block;
            width: 100%;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 22px;
            font-weight: 600;
            color: #000000;
            transition: color 0.5s;
          }
        }
        i {
          display: inline-block;
          width: 32px;
          height: 4px;
          background: #116dfa;
          margin: 9px 0 12px;
          transition: width 0.5s;
        }
        p {
          span {
            font-size: 18px;
            color: rgba(0, 0, 0, 0.85);
            line-height: 35px;
          }
        }
      }
      .content:hover{
        i{
          width: 60px;
        }
        h2 a{
           color: #01a5e6;
        }
       
      }
    }
  }
  .pages {
    width: 100%;
    height: 80px;
    text-align: center;
    margin-bottom: 30px;
  }
}
</style>